package com.megic.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author Gene
 * @Date 2020/8/8 20:51
 * @Version 1.0
 */
@RestController
public class ProductController {

    @Value("${server.port}")
    int port;

    @RequestMapping("/product/findall")
    public Map<String,Object> findall(@RequestParam("productId") String id){

        Map<String, Object> map=new HashMap<>();
        map.put("port",port);
        map.put("status",true);
        map.put("msg","获取产品成功");
        return map;
    }
}
